var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(t, e) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(t, e) {
        t.__proto__ = e;
    } || function(t, e) {
        for (var o in e) e.hasOwnProperty(o) && (t[o] = e[o]);
    })(t, e);
}, function(t, e) {
    function c() {
        this.constructor = t;
    }
    o(t, e), t.prototype = null === e ? Object.create(e) : (c.prototype = e.prototype, 
    new c());
}), a = this && this.__decorate || function(t, e, o, c) {
    var i, r = arguments.length, n = r < 3 ? e : null === c ? c = Object.getOwnPropertyDescriptor(e, o) : c;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) n = Reflect.decorate(t, e, o, c); else for (var p = t.length - 1; 0 <= p; p--) (i = t[p]) && (n = (r < 3 ? i(n) : 3 < r ? i(e, o, n) : i(e, o)) || n);
    return 3 < r && n && Object.defineProperty(e, o, n), n;
};

Object.defineProperty(n, "__esModule", {
    value: !0
});

var r = cc._decorator, s = r.ccclass, c = r.property, l = function(e) {
    function t() {
        var t = null !== e && e.apply(this, arguments) || this;
        return t.left = null, t.view = null, t.bg = null, t.scrollView = null, t.offect = 0, 
        t.offect2 = 0, t.spacingX = 0, t;
    }
    return i(t, e), t.prototype.onLoad = function() {
        this.left.x = -cc.winSize.width / 2 + this.offect, this.view.x = -cc.winSize.width / 2 + this.offect2 + this.spacingX, 
        this.view.width = cc.winSize.width - 2 * this.offect2 - 2 * this.spacingX, this.scrollView.node.width = cc.winSize.width - 2 * this.offect2 - 2 * this.spacingX, 
        this.bg && (this.bg.width = cc.winSize.width);
    }, t.prototype.start = function() {}, a([ c(cc.Node) ], t.prototype, "left", void 0), 
    a([ c(cc.Node) ], t.prototype, "view", void 0), a([ c(cc.Node) ], t.prototype, "bg", void 0), 
    a([ c(cc.ScrollView) ], t.prototype, "scrollView", void 0), a([ c ], t.prototype, "offect", void 0), 
    a([ c ], t.prototype, "offect2", void 0), a([ c ], t.prototype, "spacingX", void 0), 
    a([ s ], t);
}(cc.Component);

n.default = l;